import Base from '@/im/base'
import EngineH5 from '@/im/engine-h5'

const { MessageType, ConversationType, Contact, IMEventType } = Base
const { IM, Message, Conversation } = EngineH5

const install = (Vue) => {
  Vue.prototype.$im = new IM(Vue)
}

export default {
  install,
  MessageType,
  ConversationType,
  Message,
  Conversation,
  Contact,
  IMEventType
}
